From: Rui Matos Date: Fri, 3 Jun 2016 13:20:20 +0000 (+0200) Subject: main: Reload theme on video memory purge errors X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~822 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=358f64d66b37fa547af3e06dc85f4c5f008b7847;p=gnome-shell.git main: Reload theme on video memory purge errors The theme machinery uses FBOs in some cases (mainly for shadows) which need to be reloaded if we get a video memory purged error. https://bugzilla.gnome.org/show_bug.cgi?id=739178 --- diff --git a/js/ui/main.js b/js/ui/main.js index ad95ce0d4..789dd690c 100644 --- a/js/ui/main.js +++ b/js/ui/main.js @@ -191,6 +191,8 @@ function _initializeUI() { return true; }); + global.display.connect('gl-video-memory-purged', loadTheme); + // Provide the bus object for gnome-session to // initiate logouts. EndSessionDialog.init();